package com.bdth.bdthiss.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 客户信息
 * </p>
 *
 * @author LGP
 * @since 2019-08-22
 */
@TableName("bdth_customer")
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 公司名称
     */
    private String compname;
    /**
     * 负责人
     */
    private String headname;
    /**
     * 联系电话
     */
    private String telphone;
    /**
     * 公司地址
     */
    private String address;
    /**
     * 税号
     */
    private String dutynumber;
    /**
     * 银行账号
     */
    private String banknumber;
    /**
     * 开户行
     */
    private String bankname;
    /**
     * 是否下属单位
     */
    private Integer branch;
    /**
     * 销售ID
     */
    private Integer signmanid;
    /**
     * 销售名称
     */
    private String signman;
    /**
     * 合作状态1：合作中0：中止合作
     */
    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date uptime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCompname() {
        return compname;
    }

    public void setCompname(String compname) {
        this.compname = compname;
    }

    public String getHeadname() {
        return headname;
    }

    public void setHeadname(String headname) {
        this.headname = headname;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDutynumber() {
        return dutynumber;
    }

    public void setDutynumber(String dutynumber) {
        this.dutynumber = dutynumber;
    }

    public String getBanknumber() {
        return banknumber;
    }

    public void setBanknumber(String banknumber) {
        this.banknumber = banknumber;
    }

    public String getBankname() {
        return bankname;
    }

    public void setBankname(String bankname) {
        this.bankname = bankname;
    }

    public Integer getBranch() {
        return branch;
    }

    public void setBranch(Integer branch) {
        this.branch = branch;
    }

    public Integer getSignmanid() {
        return signmanid;
    }

    public void setSignmanid(Integer signmanid) {
        this.signmanid = signmanid;
    }

    public String getSignman() {
        return signman;
    }

    public void setSignman(String signman) {
        this.signman = signman;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getUptime() {
        return uptime;
    }

    public void setUptime(Date uptime) {
        this.uptime = uptime;
    }

    @Override
    public String toString() {
        return "Customer{" +
        ", id=" + id +
        ", compname=" + compname +
        ", headname=" + headname +
        ", telphone=" + telphone +
        ", address=" + address +
        ", dutynumber=" + dutynumber +
        ", banknumber=" + banknumber +
        ", bankname=" + bankname +
        ", branch=" + branch +
        ", signmanid=" + signmanid +
        ", signman=" + signman +
        ", status=" + status +
        "}";
    }
}
